# To change this template, choose Tools | Templates
# and open the template in the editor.
import random
class NPC():
    def __init__(self,maxlevel,maxlevel2,itembonus):
        self.itemData = ["Tiaha",50,"RainCaller",23,"FlaxShoe",12,"Kiwi-Coat",14,"GrandMother's JawBone",110]
        self.alphabet = ["a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","r","s","t","u","v","w","x""y","z"]
        self.vowels = ["a","e","i","o","u","y"]
        self.name = ""
        self.hp = random.randint(50,(maxlevel*5)+50)
        self.attack = random.randint(0,maxlevel)
        self.defence = random.randint(0,maxlevel2)
        self.greenstone =random.randint(self.attack,self.hp)
        self.items = self.itemData[random.randint(0,5)]
    def CreateName(self):
        for i in range(3):
            self.name += self.alphabet[random.randint(random.randint(0,13),23)]
            self.name += self.vowels[random.randint(random.randint(0,2),4)]


